/*
 * Copyright (c) 2020, 2025, keyila All rights reserved.
 *
 */
package com.clp.study.Test.FourToFive;
import java.util.ArrayList;
import java.util.List;

/**
 * @author clp
 * @version 1.0
 */
public class FiveZZ {
    public static void main(String[] args) {
        List<Integer> list=new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        for (int i:list){
            if (i==2){
                list.remove(Integer.valueOf(i));
            }
        }
        System.out.println(list);
    }
}
